<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Arduino FDK AAC Encoder and Decoder Library: aac_fdk::AACDecoderFDK Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Arduino FDK AAC Encoder and Decoder Library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceaac__fdk.html">aac_fdk</a></li><li class="navelem"><a class="el" href="classaac__fdk_1_1_a_a_c_decoder_f_d_k.html">AACDecoderFDK</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classaac__fdk_1_1_a_a_c_decoder_f_d_k-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">aac_fdk::AACDecoderFDK Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Audio Decoder which decodes AAC into a PCM stream.  
 <a href="classaac__fdk_1_1_a_a_c_decoder_f_d_k.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_a_a_c_decoder_f_d_k_8h_source.html">AACDecoderFDK.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a93d96e7403aa314c67c26bce6f6071bd"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaac__fdk_1_1_a_a_c_decoder_f_d_k.html#a93d96e7403aa314c67c26bce6f6071bd">AACDecoderFDK</a> (int output_buffer_size=2048)</td></tr>
<tr class="memdesc:a93d96e7403aa314c67c26bce6f6071bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct a new <a class="el" href="classaac__fdk_1_1_a_a_c_decoder_f_d_k.html" title="Audio Decoder which decodes AAC into a PCM stream.">AACDecoderFDK</a> object.  <a href="classaac__fdk_1_1_a_a_c_decoder_f_d_k.html#a93d96e7403aa314c67c26bce6f6071bd">More...</a><br /></td></tr>
<tr class="separator:a93d96e7403aa314c67c26bce6f6071bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50eb9ec47b72f7e251f53ae9d787b6c7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaac__fdk_1_1_a_a_c_decoder_f_d_k.html#a50eb9ec47b72f7e251f53ae9d787b6c7">AACDecoderFDK</a> (AACDataCallbackFDK dataCallback, AACInfoCallbackFDK infoCallback=nullptr, int output_buffer_size=2048)</td></tr>
<tr class="memdesc:a50eb9ec47b72f7e251f53ae9d787b6c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct a new <a class="el" href="classaac__fdk_1_1_a_a_c_decoder_f_d_k.html" title="Audio Decoder which decodes AAC into a PCM stream.">AACDecoderFDK</a> object.  <a href="classaac__fdk_1_1_a_a_c_decoder_f_d_k.html#a50eb9ec47b72f7e251f53ae9d787b6c7">More...</a><br /></td></tr>
<tr class="separator:a50eb9ec47b72f7e251f53ae9d787b6c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd133c999581ac088d43413d9ffa2148"><td class="memItemLeft" align="right" valign="top"><a id="afd133c999581ac088d43413d9ffa2148"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>AACDecoderFDK</b> (Stream &amp;out_stream, int output_buffer_size=2048)</td></tr>
<tr class="separator:afd133c999581ac088d43413d9ffa2148"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a024569eb041a55ca2771d03cc743c312"><td class="memItemLeft" align="right" valign="top"><a id="a024569eb041a55ca2771d03cc743c312"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaac__fdk_1_1_a_a_c_decoder_f_d_k.html#a024569eb041a55ca2771d03cc743c312">setStream</a> (Stream &amp;out_stream)</td></tr>
<tr class="memdesc:a024569eb041a55ca2771d03cc743c312"><td class="mdescLeft">&#160;</td><td class="mdescRight">Defines the output stream. <br /></td></tr>
<tr class="separator:a024569eb041a55ca2771d03cc743c312"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2080bfdd65e939c88b1156beace17d16"><td class="memItemLeft" align="right" valign="top"><a id="a2080bfdd65e939c88b1156beace17d16"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setInfoCallback</b> (AACInfoCallbackFDK cb)</td></tr>
<tr class="separator:a2080bfdd65e939c88b1156beace17d16"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a716ec4c7a18dc0c08b6b2460d014d2ec"><td class="memItemLeft" align="right" valign="top"><a id="a716ec4c7a18dc0c08b6b2460d014d2ec"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setDataCallback</b> (AACDataCallbackFDK cb)</td></tr>
<tr class="separator:a716ec4c7a18dc0c08b6b2460d014d2ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad06ab9a7174c1bd49dda1f0632012c2a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaac__fdk_1_1_a_a_c_decoder_f_d_k.html#ad06ab9a7174c1bd49dda1f0632012c2a">setRawConfig</a> (void *cfg, UINT &amp;len)</td></tr>
<tr class="memdesc:ad06ab9a7174c1bd49dda1f0632012c2a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Explicitly configure the decoder by passing a raw AudioSpecificConfig (ASC) or a StreamMuxConfig (SMC), contained in a binary buffer. This is required for MPEG-4 and Raw Packets file format bitstreams as well as for LATM bitstreams with no in-band SMC. If the transport format is LATM with or without LOAS, configuration is assumed to be an SMC, for all other file formats an ASC.  <a href="classaac__fdk_1_1_a_a_c_decoder_f_d_k.html#ad06ab9a7174c1bd49dda1f0632012c2a">More...</a><br /></td></tr>
<tr class="separator:ad06ab9a7174c1bd49dda1f0632012c2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0a9f3a247c5d46eceeb7d72ff355386"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaac__fdk_1_1_a_a_c_decoder_f_d_k.html#ac0a9f3a247c5d46eceeb7d72ff355386">setDecoderFlags</a> (int flags)</td></tr>
<tr class="memdesc:ac0a9f3a247c5d46eceeb7d72ff355386"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the Decoder Flags object Bit field with flags for the decoder: <br  />
 (flags &amp; AACDEC_CONCEAL) == 1: Do concealment. <br  />
 (flags &amp; AACDEC_FLUSH) == 2: Discard input data. Flush filter banks (output delayed audio). <br  />
 (flags &amp; AACDEC_INTR) == 4: Input data is discontinuous. Resynchronize any internals as necessary. <br  />
 (flags &amp; AACDEC_CLRHIST) == 8: Clear all signal delay lines and history buffers.  <a href="classaac__fdk_1_1_a_a_c_decoder_f_d_k.html#ac0a9f3a247c5d46eceeb7d72ff355386">More...</a><br /></td></tr>
<tr class="separator:ac0a9f3a247c5d46eceeb7d72ff355386"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65f43c90372be621f625ec3401be345b"><td class="memItemLeft" align="right" valign="top"><a id="a65f43c90372be621f625ec3401be345b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>begin</b> (<a class="el" href="namespaceaac__fdk.html#a2778be91ce5b9583922e12ed14800ab7">TRANSPORT_TYPE</a> transportType=<a class="el" href="namespaceaac__fdk.html#a2778be91ce5b9583922e12ed14800ab7a4dcca5bcc4b82568da4a32aaf231966b">TT_MP4_ADTS</a>, UINT nrOfLayers=1)</td></tr>
<tr class="separator:a65f43c90372be621f625ec3401be345b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e9a700cc1e8433b54a31c64800a7627"><td class="memItemLeft" align="right" valign="top"><a id="a6e9a700cc1e8433b54a31c64800a7627"></a>
AAC_DECODER_ERROR&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaac__fdk_1_1_a_a_c_decoder_f_d_k.html#a6e9a700cc1e8433b54a31c64800a7627">configure</a> (uint8_t *conf, const uint32_t &amp;length)</td></tr>
<tr class="memdesc:a6e9a700cc1e8433b54a31c64800a7627"><td class="mdescLeft">&#160;</td><td class="mdescRight">Explicitly configure the decoder by passing a raw AudioSpecificConfig (ASC) or a StreamMuxConfig (SMC), contained in a binary buffer. This is required for MPEG-4 and Raw Packets file format bitstreams as well as for LATM bitstreams with no in-band SMC. If the transport format is LATM with or without LOAS, configuration is assumed to be an SMC, for all other file formats an ASC. <br /></td></tr>
<tr class="separator:a6e9a700cc1e8433b54a31c64800a7627"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71b21ce904154ea05b74658269a5ee0c"><td class="memItemLeft" align="right" valign="top"><a id="a71b21ce904154ea05b74658269a5ee0c"></a>
virtual size_t&#160;</td><td class="memItemRight" valign="bottom"><b>write</b> (const void *in_ptr, size_t in_size)</td></tr>
<tr class="separator:a71b21ce904154ea05b74658269a5ee0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace8e1dd0e0361949e75b4d0e2ae20f04"><td class="memItemLeft" align="right" valign="top"><a id="ace8e1dd0e0361949e75b4d0e2ae20f04"></a>
CStreamInfo &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>audioInfo</b> ()</td></tr>
<tr class="separator:ace8e1dd0e0361949e75b4d0e2ae20f04"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aacb7691b1370d52aadd8e914936f5531"><td class="memItemLeft" align="right" valign="top"><a id="aacb7691b1370d52aadd8e914936f5531"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>end</b> ()</td></tr>
<tr class="separator:aacb7691b1370d52aadd8e914936f5531"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a63afacb44c126b4b6eb6fa7bb023abe0"><td class="memItemLeft" align="right" valign="top"><a id="a63afacb44c126b4b6eb6fa7bb023abe0"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><b>operator boolean</b> ()</td></tr>
<tr class="separator:a63afacb44c126b4b6eb6fa7bb023abe0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:acc5e09c10e95d152a3deb09377e85a22"><td class="memItemLeft" align="right" valign="top"><a id="acc5e09c10e95d152a3deb09377e85a22"></a>
virtual size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaac__fdk_1_1_a_a_c_decoder_f_d_k.html#acc5e09c10e95d152a3deb09377e85a22">decode</a> (const void *in_ptr, size_t in_size)</td></tr>
<tr class="memdesc:acc5e09c10e95d152a3deb09377e85a22"><td class="mdescLeft">&#160;</td><td class="mdescRight">decodes the data <br /></td></tr>
<tr class="separator:acc5e09c10e95d152a3deb09377e85a22"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae672eb855a6c8c428f3da83c8edd0a9c"><td class="memItemLeft" align="right" valign="top"><a id="ae672eb855a6c8c428f3da83c8edd0a9c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaac__fdk_1_1_a_a_c_decoder_f_d_k.html#ae672eb855a6c8c428f3da83c8edd0a9c">provideResult</a> (INT_PCM *data, size_t len)</td></tr>
<tr class="memdesc:ae672eb855a6c8c428f3da83c8edd0a9c"><td class="mdescLeft">&#160;</td><td class="mdescRight">return the result PWM data <br /></td></tr>
<tr class="separator:ae672eb855a6c8c428f3da83c8edd0a9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:adc3fa64e731f86f1ee070c8c12287015"><td class="memItemLeft" align="right" valign="top"><a id="adc3fa64e731f86f1ee070c8c12287015"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>is_cleanup_stream</b> = false</td></tr>
<tr class="separator:adc3fa64e731f86f1ee070c8c12287015"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4c3ccb60b4fa209bd69334581d55ead"><td class="memItemLeft" align="right" valign="top"><a id="af4c3ccb60b4fa209bd69334581d55ead"></a>
HANDLE_AACDECODER&#160;</td><td class="memItemRight" valign="bottom"><b>aacDecoderInfo</b></td></tr>
<tr class="separator:af4c3ccb60b4fa209bd69334581d55ead"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae24d7e7c70142f289185c375be6df9de"><td class="memItemLeft" align="right" valign="top"><a id="ae24d7e7c70142f289185c375be6df9de"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>output_buffer_size</b> = 0</td></tr>
<tr class="separator:ae24d7e7c70142f289185c375be6df9de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30bedad57a8dce7ac76305a8b6f97cbe"><td class="memItemLeft" align="right" valign="top"><a id="a30bedad57a8dce7ac76305a8b6f97cbe"></a>
INT_PCM *&#160;</td><td class="memItemRight" valign="bottom"><b>output_buffer</b> = nullptr</td></tr>
<tr class="separator:a30bedad57a8dce7ac76305a8b6f97cbe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace0ac697c77d0d62ce4ce02709f8b58a"><td class="memItemLeft" align="right" valign="top"><a id="ace0ac697c77d0d62ce4ce02709f8b58a"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>is_open</b> = false</td></tr>
<tr class="separator:ace0ac697c77d0d62ce4ce02709f8b58a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa8de5441e2b390328530edda3493df35"><td class="memItemLeft" align="right" valign="top"><a id="aa8de5441e2b390328530edda3493df35"></a>
CStreamInfo&#160;</td><td class="memItemRight" valign="bottom"><b>aacFrameInfo</b></td></tr>
<tr class="separator:aa8de5441e2b390328530edda3493df35"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5af5e9f176c1c15e623e758eb687a9c9"><td class="memItemLeft" align="right" valign="top"><a id="a5af5e9f176c1c15e623e758eb687a9c9"></a>
AACDataCallbackFDK&#160;</td><td class="memItemRight" valign="bottom"><b>pwmCallback</b> = nullptr</td></tr>
<tr class="separator:a5af5e9f176c1c15e623e758eb687a9c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa25559d97009a323083c78d4305aa070"><td class="memItemLeft" align="right" valign="top"><a id="aa25559d97009a323083c78d4305aa070"></a>
AACInfoCallbackFDK&#160;</td><td class="memItemRight" valign="bottom"><b>infoCallback</b> = nullptr</td></tr>
<tr class="separator:aa25559d97009a323083c78d4305aa070"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a313e2ad49c3a2e76fc802d6b22912405"><td class="memItemLeft" align="right" valign="top"><a id="a313e2ad49c3a2e76fc802d6b22912405"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>decoder_flags</b> = 0</td></tr>
<tr class="separator:a313e2ad49c3a2e76fc802d6b22912405"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f22671e71cffc06217fc23ee6e1b620"><td class="memItemLeft" align="right" valign="top"><a id="a4f22671e71cffc06217fc23ee6e1b620"></a>
Stream *&#160;</td><td class="memItemRight" valign="bottom"><b>out</b> = nullptr</td></tr>
<tr class="separator:a4f22671e71cffc06217fc23ee6e1b620"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Audio Decoder which decodes AAC into a PCM stream. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a93d96e7403aa314c67c26bce6f6071bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a93d96e7403aa314c67c26bce6f6071bd">&#9670;&nbsp;</a></span>AACDecoderFDK() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">aac_fdk::AACDecoderFDK::AACDecoderFDK </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>output_buffer_size</em> = <code>2048</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Construct a new <a class="el" href="classaac__fdk_1_1_a_a_c_decoder_f_d_k.html" title="Audio Decoder which decodes AAC into a PCM stream.">AACDecoderFDK</a> object. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">output_buffer_size</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a50eb9ec47b72f7e251f53ae9d787b6c7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a50eb9ec47b72f7e251f53ae9d787b6c7">&#9670;&nbsp;</a></span>AACDecoderFDK() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">aac_fdk::AACDecoderFDK::AACDecoderFDK </td>
          <td>(</td>
          <td class="paramtype">AACDataCallbackFDK&#160;</td>
          <td class="paramname"><em>dataCallback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">AACInfoCallbackFDK&#160;</td>
          <td class="paramname"><em>infoCallback</em> = <code>nullptr</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>output_buffer_size</em> = <code>2048</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Construct a new <a class="el" href="classaac__fdk_1_1_a_a_c_decoder_f_d_k.html" title="Audio Decoder which decodes AAC into a PCM stream.">AACDecoderFDK</a> object. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dataCallback</td><td></td></tr>
    <tr><td class="paramname">infoCallback</td><td>(default nullptr) </td></tr>
    <tr><td class="paramname">output_buffer_size</td><td>(default 2048) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ac0a9f3a247c5d46eceeb7d72ff355386"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac0a9f3a247c5d46eceeb7d72ff355386">&#9670;&nbsp;</a></span>setDecoderFlags()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void aac_fdk::AACDecoderFDK::setDecoderFlags </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>flags</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set the Decoder Flags object Bit field with flags for the decoder: <br  />
 (flags &amp; AACDEC_CONCEAL) == 1: Do concealment. <br  />
 (flags &amp; AACDEC_FLUSH) == 2: Discard input data. Flush filter banks (output delayed audio). <br  />
 (flags &amp; AACDEC_INTR) == 4: Input data is discontinuous. Resynchronize any internals as necessary. <br  />
 (flags &amp; AACDEC_CLRHIST) == 8: Clear all signal delay lines and history buffers. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">flags</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ad06ab9a7174c1bd49dda1f0632012c2a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad06ab9a7174c1bd49dda1f0632012c2a">&#9670;&nbsp;</a></span>setRawConfig()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int aac_fdk::AACDecoderFDK::setRawConfig </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>cfg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UINT &amp;&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Explicitly configure the decoder by passing a raw AudioSpecificConfig (ASC) or a StreamMuxConfig (SMC), contained in a binary buffer. This is required for MPEG-4 and Raw Packets file format bitstreams as well as for LATM bitstreams with no in-band SMC. If the transport format is LATM with or without LOAS, configuration is assumed to be an SMC, for all other file formats an ASC. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">cfg</td><td>Pointer to an unsigned char buffer containing the binary configuration buffer (either ASC or SMC). </td></tr>
    <tr><td class="paramname">len</td><td>Length of the configuration buffer in bytes. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Error code. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/<a class="el" href="_a_a_c_decoder_f_d_k_8h_source.html">AACDecoderFDK.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
